home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / more.man < prev    next >
Encoding:
Text File  |  1989-06-15  |  10.1 KB  |  331 lines

  1.  
  2.  
  3.  
  4. MORE                      User Commands                      MORE
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      more, page - file perusal filter for crt viewing
  10.  
  11. SSYYNNOOPPSSIISS
  12.      mmoorree [ --ccddffllssuu ] [ --_n ] [ ++_l_i_n_e_n_u_m_b_e_r ] [ ++//_p_a_t_t_e_r_n ] [ name
  13.      ...  ]
  14.  
  15.      ppaaggee _m_o_r_e _o_p_t_i_o_n_s
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _M_o_r_e is a filter which allows examination of a continuous
  19.      text one screenful at a time on a soft-copy terminal.  It
  20.      normally pauses after each screenful, printing --More-- at
  21.      the bottom of the screen.  If the user then types a carriage
  22.      return, one more line is displayed.  If the user hits a
  23.      space, another screenful is displayed.  Other possibilities
  24.      are enumerated later.
  25.  
  26.      The command line options are:
  27.  
  28.      -_n   An integer which is the size (in lines) of the window
  29.           which _m_o_r_e will use instead of the default.
  30.  
  31.      --cc   _M_o_r_e will draw each page by beginning at the top of the
  32.           screen and erasing each line just before it draws on
  33.           it.  This avoids scrolling the screen, making it easier
  34.           to read while _m_o_r_e is writing.  This option will be
  35.           ignored if the terminal does not have the ability to
  36.           clear to the end of a line.
  37.  
  38.      --dd   _M_o_r_e will prompt the user with the message "Press space
  39.           to continue, 'q' to quit." at the end of each screen-
  40.           ful, and will respond to subsequent illegal user input
  41.           by printing "Press 'h' for instructions." instead of
  42.           ringing the bell.  This is useful if _m_o_r_e is being used
  43.           as a filter in some setting, such as a class, where
  44.           many users may be unsophisticated.
  45.  
  46.      --ff   This causes _m_o_r_e to count logical, rather than screen
  47.           lines.  That is, long lines are not folded.  This
  48.           option is recommended if _n_r_o_f_f output is being piped
  49.           through _u_l, since the latter may generate escape
  50.           sequences.  These escape sequences contain characters
  51.           which would ordinarily occupy screen positions, but
  52.           which do not print when they are sent to the terminal
  53.           as part of an escape sequence.  Thus _m_o_r_e may think
  54.           that lines are longer than they actually are, and fold
  55.           lines erroneously.
  56.  
  57.      --ll   Do not treat ^L (form feed) specially.  If this option
  58.           is not given, _m_o_r_e will pause after any line that con-
  59.           tains a ^L, as if the end of a screenful had been
  60.  
  61.  
  62.  
  63. Sprite v1.0               June 5, 1986                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MORE                      User Commands                      MORE
  71.  
  72.  
  73.  
  74.           reached.  Also, if a file begins with a form feed, the
  75.           screen will be cleared before the file is printed.
  76.  
  77.      --ss   Squeeze multiple blank lines from the output, producing
  78.           only one blank line.  Especially helpful when viewing
  79.           _n_r_o_f_f output, this option maximizes the useful informa-
  80.           tion present on the screen.
  81.  
  82.      --uu   Normally, _m_o_r_e will handle underlining such as produced
  83.           by _n_r_o_f_f in a manner appropriate to the particular ter-
  84.           minal:  if the terminal can perform underlining or has
  85.           a stand-out mode, _m_o_r_e will output appropriate escape
  86.           sequences to enable underlining or stand-out mode for
  87.           underlined information in the source file.  The -_u
  88.           option suppresses this processing.
  89.  
  90.      ++_l_i_n_e_n_u_m_b_e_r
  91.           Start up at _l_i_n_e_n_u_m_b_e_r.
  92.  
  93.      ++//_p_a_t_t_e_r_n
  94.           Start up two lines before the line containing the regu-
  95.           lar expression _p_a_t_t_e_r_n.
  96.  
  97.      If the program is invoked as _p_a_g_e, then the screen is
  98.      cleared before each screenful is printed (but only if a full
  99.      screenful is being printed), and _k - 1 rather than _k - 2
  100.      lines are printed in each screenful, where _k is the number
  101.      of lines the terminal can display.
  102.  
  103.      _M_o_r_e looks in the file /_e_t_c/_t_e_r_m_c_a_p to determine terminal
  104.      characteristics, and to determine the default window size.
  105.      On a terminal capable of displaying 24 lines, the default
  106.      window size is 22 lines.
  107.  
  108.      _M_o_r_e looks in the environment variable _M_O_R_E to pre-set any
  109.      flags desired.  For example, if you prefer to view files
  110.      using the -_c mode of operation, the _c_s_h command _s_e_t_e_n_v _M_O_R_E
  111.      -_c or the _s_h command sequence _M_O_R_E='-_c' ; _e_x_p_o_r_t _M_O_R_E would
  112.      cause all invocations of _m_o_r_e , including invocations by
  113.      programs such as _m_a_n and _m_s_g_s , to use this mode.  Normally,
  114.      the user will place the command sequence which sets up the
  115.      _M_O_R_E environment variable in the ._c_s_h_r_c or ._p_r_o_f_i_l_e file.
  116.  
  117.      If _m_o_r_e is reading from a file, rather than a pipe, then a
  118.      percentage is displayed along with the --More-- prompt.
  119.      This gives the fraction of the file (in characters, not
  120.      lines) that has been read so far.
  121.  
  122.      Other sequences which may be typed when _m_o_r_e pauses, and
  123.      their effects, are as follows (_i is an optional integer
  124.      argument, defaulting to 1) :
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0               June 5, 1986                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. MORE                      User Commands                      MORE
  137.  
  138.  
  139.  
  140.      _i<space>
  141.           display _i more lines, (or another screenful if no argu-
  142.           ment is given)
  143.  
  144.      ^D   display 11 more lines (a ``scroll'').  If _i is given,
  145.           then the scroll size is set to _i.
  146.  
  147.      d    same as ^D (control-D)
  148.  
  149.      _iz   same as typing a space except that _i, if present,
  150.           becomes the new window size.
  151.  
  152.      _is   skip _i lines and print a screenful of lines
  153.  
  154.      _if   skip _i screenfuls and print a screenful of lines
  155.  
  156.      _ib   skip back _i screenfuls and print a screenful of lines
  157.  
  158.      _i^B  same as b
  159.  
  160.      q or Q
  161.           Exit from _m_o_r_e.
  162.  
  163.      =    Display the current line number.
  164.  
  165.      v    Start up the editor _v_i at the current line.
  166.  
  167.      h    Help command; give a description of all the _m_o_r_e com-
  168.           mands.
  169.  
  170.      _i/expr
  171.           search for the _i-th occurrence of the regular expres-
  172.           sion _e_x_p_r.  If there are less than _i occurrences of
  173.           _e_x_p_r, and the input is a file (rather than a pipe),
  174.           then the position in the file remains unchanged.  Oth-
  175.           erwise, a screenful is displayed, starting two lines
  176.           before the place where the expression was found.  The
  177.           user's erase and kill characters may be used to edit
  178.           the regular expression.  Erasing back past the first
  179.           column cancels the search command.
  180.  
  181.      _in   search for the _i-th occurrence of the last regular
  182.           expression entered.
  183.  
  184.      '    (single quote) Go to the point from which the last
  185.           search started.  If no search has been performed in the
  186.           current file, this command goes back to the beginning
  187.           of the file.
  188.  
  189.      !command
  190.           invoke a shell with _c_o_m_m_a_n_d. The characters `%' and `!'
  191.           in "command" are replaced with the current file name
  192.  
  193.  
  194.  
  195. Sprite v1.0               June 5, 1986                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. MORE                      User Commands                      MORE
  203.  
  204.  
  205.  
  206.           and the previous shell command respectively.  If there
  207.           is no current file name, `%' is not expanded.  The
  208.           sequences "\%" and "\!" are replaced by "%" and "!"
  209.           respectively.
  210.  
  211.      _i:n  skip to the _i-th next file given in the command line
  212.           (skips to last file if n doesn't make sense)
  213.  
  214.      _i:p  skip to the _i-th previous file given in the command
  215.           line.  If this command is given in the middle of print-
  216.           ing out a file, then _m_o_r_e goes back to the beginning of
  217.           the file. If _i doesn't make sense, _m_o_r_e skips back to
  218.           the first file.  If _m_o_r_e is not reading from a file,
  219.           the bell is rung and nothing else happens.
  220.  
  221.      :f   display the current file name and line number.
  222.  
  223.      :q or :Q
  224.           exit from _m_o_r_e (same as q or Q).
  225.  
  226.      .    (dot) repeat the previous command.
  227.  
  228.      The commands take effect immediately, i.e., it is not neces-
  229.      sary to type a carriage return.  Up to the time when the
  230.      command character itself is given, the user may hit the line
  231.      kill character to cancel the numerical argument being
  232.      formed.  In addition, the user may hit the erase character
  233.      to redisplay the --More--(xx%) message.
  234.  
  235.      At any time when output is being sent to the terminal, the
  236.      user can hit the quit key (normally control-\).  _M_o_r_e will
  237.      stop sending output, and will display the usual --More--
  238.      prompt.  The user may then enter one of the above commands
  239.      in the normal manner.  Unfortunately, some output is lost
  240.      when this is done, due to the fact that any characters wait-
  241.      ing in the terminal's output queue are flushed when the quit
  242.      signal occurs.
  243.  
  244.      The terminal is set to _n_o_e_c_h_o mode by this program so that
  245.      the output can be continuous.  What you type will thus not
  246.      show on your terminal, except for the / and !  commands.
  247.  
  248.      If the standard output is not a teletype, then _m_o_r_e acts
  249.      just like _c_a_t, except that a header is printed before each
  250.      file (if there is more than one).
  251.  
  252.      A sample usage of _m_o_r_e in previewing _n_r_o_f_f output would be
  253.  
  254.           nroff -ms +2 doc.n | more -s
  255.  
  256. FFIILLEESS
  257.      /etc/termcap        Terminal data base
  258.  
  259.  
  260.  
  261. Sprite v1.0               June 5, 1986                          4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. MORE                      User Commands                      MORE
  269.  
  270.  
  271.  
  272.      /usr/lib/more.help  Help file
  273.  
  274. SSEEEE AALLSSOO
  275.      csh(1), man(1), msgs(1), script(1), sh(1), environ(7)
  276.  
  277. BBUUGGSS
  278.      Skipping backwards is too slow on large files.
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327. Sprite v1.0               June 5, 1986                          5
  328.  
  329.  
  330.  
  331.